package com.ruoyi.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 风险应知卡
 *
 * @since 2023-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("prevention_risk_ought")
@ApiModel(value = "PreventionRiskOught对象", description = "风险应知卡")
public class PreventionRiskOught implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "附件id集合")
    private String riskFileId;

    @ApiModelProperty(value = "编号")
    private String riskNumber;

    @ApiModelProperty(value = "所属单元区域ID")
    private Integer riskUnitId;

    @ApiModelProperty(value = "所属单元区域名称")
    private String riskUnitName;

    @ApiModelProperty(value = "岗位ID")
    private Integer riskJobId;

    @ApiModelProperty(value = "岗位名称")
    private String riskJobName;

    @ApiModelProperty(value = "风险等级")
    private String riskGrade;

    @ApiModelProperty(value = "主要危险有害因素")
    private String riskPrimaryHazard;

    @ApiModelProperty(value = "易导致事故风险")
    private String riskAccidentRisk;

    @ApiModelProperty(value = "风险管控措施")
    private String riskControl;

    @ApiModelProperty(value = "应急处置对策")
    private String riskEmergencyDisposal;

    @ApiModelProperty(value = "安全警示标志")
    private String riskSafetyWarning;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 文件id
     */
    private Integer fileId;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件地址
     */
    private String fileUrl;
    /**
     * 责任部门
     */
    private String responsibleDepartment;
    /**
     * 责任人
     */
    private String personResponsible;

    private List<PreventionRiskOughtFile> riskOughtFileList;

    private Integer yn;

}
